package com.r2coding.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.r2coding.article.vo.req.CommentReqVo;
import com.r2coding.article.vo.resp.AdminCommentRespVo;
import com.r2coding.article.vo.resp.CommentByArticleIdRespVo;
import com.r2coding.article.vo.resp.CommentRespVo;
import com.r2coding.article.vo.resp.CommentsRespVo;
import com.r2coding.common.util.PageUtils;
import com.r2coding.article.entity.CommentEntity;

import java.util.List;
import java.util.Map;
/**
 * 评论信息表
 *
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-04-13 19:34:16
 */
public interface CommentService extends IService<CommentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CommentEntity> getByArticleId(Integer articleId);

    CommentRespVo commentInfo(Integer articleId);

    void saveComment(CommentEntity commentEntity);

    AdminCommentRespVo comments(CommentReqVo req);

    void deleteComment(Integer id);
}

